﻿using System;
using System.Collections.Generic;
using System.Text;

namespace RuyeeModbus
{
    [Flags]
    public enum ModbusExceptionCode : byte
    {
        /// <summary>
        /// 
        /// </summary>
        IllegalFunction = 0x01,
        /// <summary>
        /// 
        /// </summary>
        IllegalDataAddress = 0x02,
        /// <summary>
        /// 
        /// </summary>
        IllegalDataValue = 0x03,
        SlaveDeviceFalure = 0x04,
        Acknowledge = 0x05,
        SlaveDeviceBusy = 0x06,
        MemoryPartiyError = 0x08,
        GatewayPathUnavailable = 0x0A,
        /// <summary>
        /// 
        /// </summary>
        GatewayTargetDeviceFailedToRespond = 0x0B

    }
}
